import { get, post } from '@/utils/http';

//  列出所有树莓派设备
export const getListAllDevice = params => get('/device?method=list_all_device', params);
// 创建树莓派设备
export const getCreate_device = params => get('/device?method=create_device', params);
//列出树莓派的所有传感器
export const getListAllSensors = params => get('/device?method=list_all_sensors', params);
//获取多个传感器数据
export const getSensorsValue = params => get('/device?method=get_sensors_value', params);
//上传多个传感器多条数据
export const postSensorsValue = params => post('/device?method=put_sensors_values', params);
// 获取WebRTC连接
export const getCall = params => get('/webrtc?method=call', params);
